package com.boatAnchorAssistant.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boatAnchorAssistant.pojo.dto.alarm.GetAlarmChartListDto;
import com.boatAnchorAssistant.pojo.entity.Alarm;
import com.boatAnchorAssistant.pojo.vo.alarm.GetAlarmChartListVo;
import org.springframework.stereotype.Repository;

    import com.boatAnchorAssistant.pojo.dto.alarm.SelectAlarmDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Repository
public interface AlarmMapper extends BaseMapper< Alarm > {

    /**
    * 搜索报警列表
    * @param dto
    * @return
    */
    Page< Alarm > selectAlarm(SelectAlarmDto dto);

    /**
     * 事件报警查询
     * @param dto
     * @return
     */
    List<GetAlarmChartListVo> getAlarmChartList(GetAlarmChartListDto dto);
}